package com.module.admin.rest.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.module.admin.rest.pojo.RestInfo;
import com.system.handler.model.ResponseFrame;

/**
 * rest_info的Service
 * @author yuejing
 * @date 2016-12-23 16:43:04
 * @version V1.0.0
 */
@Component
public interface RestInfoService {
	
	/**
	 * 保存或修改
	 * @param restInfo
	 * @return
	 */
	public ResponseFrame save(RestInfo restInfo);
	
	/**
	 * 根据riId获取对象
	 * @param riId
	 * @return
	 */
	public RestInfo get(Integer riId);

	/**
	 * 分页获取对象
	 * @param restInfo
	 * @return
	 */
	public ResponseFrame pageQuery(RestInfo restInfo);
	
	/**
	 * 根据riId删除对象
	 * @param riId
	 * @return
	 */
	public ResponseFrame delete(Integer riId);

	public List<RestInfo> findAll();
}
